<#macro statusbar> 
    <link href="../style/www/comm.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../js-plugin/jquery.form.js"></script>
	<script type="text/javascript" src="../js/www/comm.js"></script>
</#macro>

<#macro header>
<div class="header">
    <div class="head">
        <div class="head-logo wrapper">
            <div class="logo1">
            </div>
            <div class="logo2">
            </div>
        </div>
    </div>
    <div class="menu">
        <div class="menu-list wrapper">
            <a href="${response.encodeURL('/Index')}"><span>网站首页</span></a>
            <a href="${response.encodeURL('Column?id=1')}"><span>工委概况</span></a>
            <a href="${response.encodeURL('Column?id=3')}"><span>重要言论</span></a>
            <a href="${response.encodeURL('Column?id=4')}"><span>党建工作</span></a>
            <a href="${response.encodeURL('Column?id=5')}"><span>工作安排</span></a>
            <a href="${response.encodeURL('Album')}"><span>专题活动</span></a>
            <a href="${response.encodeURL('Column?id=6')}"><span>部门动态</span></a>
            <a href="${response.encodeURL('Column?id=7')}"><span>党务公开</span></a>
            <a href="${response.encodeURL('Column?id=8')}"><span>工作交流</span></a>
            <a href="${response.encodeURL('Column?id=12')}"><span>文件通知</span></a>
        </div>
    </div>
    <div class="bar">
        <div class="bar-content wrapper">
            <div class="notice">
                <span>公告</span>
                <div class="slider">
                    <div class="top_flexslider">
		                <ul class="slides">
		                    <#list articleMgr.getArticleListByCol(2,7) as act>
			                    <li>
			                        <a target="_blank" href="${response.encodeURL('Article?id='+act.id?c)}">${act.postdate?date}　${act.title?html}</a>
			                    </li>
		                    </#list>
		                </ul>
                    </div>
                </div>
            </div>
            <div class="search">
            	<form action="/Search" method="post" id="searchForm">
	                <input type="text" id="searchText" name="searchKey" class="searchText" value="" />
					<input type="submit" id="searchBtn" class="searchBtn" value="搜 索" />
	            </form>
            </div>
        </div>
    </div>
</div>
</#macro>

<#macro noticebox>
<div id="noticeBox" class="com-cloumn com-noticeBox">
    <h1><span>通知公告</span></h1>
	<ul>
        <#list articleMgr.getArticleListByCol(2,7) as act>
        <li>
            <a target="_blank" href="${response.encodeURL('Article?id='+act.id?c)}" title="${act.title?html}">${act.title?html}</a>
        </li>
        </#list>
    </ul>
</div>
</#macro>

<#macro loginbox>
<script>
    var serverPath = "${request.getContextPath()}";
	var UserID = "${session.getAttribute('userid')}";
</script>
<div class="com-cloumn com-box com-loginBox">
    <h1><span>工作交流登录</span></h1>
	<#if session.getAttribute('userid') != "">
		<div class="loginInfo">
	        <div>
	            <label>你好, <sapn>${session.getAttribute("username")}</sapn> , 欢迎回来。</label>
	        </div>
	        <div>
	           <a href="/interact/index" target="_blank">进入工作交流</a> | <a href="#" id="loginout">退出登录</a>
	        </div>
	    </div>
	<#else>
		<form id="loginForm" action="/action/interact/login" method="post">
	        <p>
	            <label>用户</label>
	            <input type="text" name="uname" id="uname" class="input" value="" />
	        </p>
	        <p>
	            <label>密码</label>
	            <input type="password" name="upass" id="upass" class="input" value="" />
	        </p>
	        <p>
	            <input type="button" class="button" id="loginSubmit" value="登录" />
	        </p>
	    </form>
	</#if>
</div>
</#macro>

<#macro rankbox>
<div class="com-cloumn com-box com-rankBox">
    <h1><span>信息刊用排行榜</span></h1>
    <div>
        <table>
            <thead>
                <tr>
                    <th style="width:50px;height:35px;">排名</th>
                    <th class="aleft">投稿人</th>
                    <th style="width:60px;">得分</th>
                </tr>
            </thead>
            <tbody>
            	<#list contributemgr.getContributeRankList(5) as rank>
					<tr style="color:<#if rank_index=0>#ff0101<#elseif rank_index=1>#319bf1<#elseif rank_index=2>#14c574<#else>#666666</#if>;">
	                    <td>${rank_index+1}</td>
	                    <td class="aleft">${rank.uname?html}</td>
	                    <td>${rank.score?c}分</td>
	                </tr>
		        </#list>
            </tbody>
        </table>
    </div>
</div>
</#macro>

<#macro footer>
<div class="footer">
    <p>
    	<a href="${response.encodeURL('/master/login')}">[管理员登录]</a>
    	<a href="${response.encodeURL('Album')}">[美图欣赏]</a>
	    <a href="${response.encodeURL('Invest')}">[调查问卷]</a>
	    <a href="${response.encodeURL('Advice')}">[党员投诉]</a>
	</p>
    <p>版权所有：中共句容市委市级机关工作委员会主办</p>
    <p>地址：江苏省句容市人民路70号 邮编：212400 电话：0511-872*******0 邮箱：*******@163.com</p>
    <p>网址：http://www.jrjg.gov.cn/ </p>
</div>
</#macro>